<?php $this->load->view('common/header'); ?>
<?php $this->load->view('common/menu'); ?>

    <div class="banner_box"><img src="<?php echo image_url('banner.jpg'); ?>"></div>

    <div class="main_box">
        <div class="title">
            <?php if ($zixuncategory) : ?>
                <?php foreach ($zixuncategory as $key => $val) : ?>
                    <a href="<?php echo "/news/" . $val['id'] . ".html"; ?>" <? if (isset($id) && $id == $val['id']) { ?> class="on" <?php } ?> ><?php echo $val['category_name'] ?? ""; ?></a>
                <?php endforeach; ?>
            <?php endif; ?>
        </div>
        <div class="list">
            <ul>
                <?php if ($news) : ?>
                    <?php foreach ($news as $key => $val) : ?>
                        <li>
                            <h2>
                                <a href="<?php echo "/news_show/" . $val['id'] . ".html"; ?>"><?php echo $val['title']; ?></a>
                                <span><?php echo $val['describe']; ?></span>
                                <em><?php echo $val['create_time']; ?></em>
                            </h2>
                        </li>

                    <?php endforeach; ?>
                <?php endif; ?>

            </ul>
        </div>
        <div class="page">
            <ul><?php echo $pagination; ?></ul>
        </div>
    </div>
<?php $this->load->view('common/footer'); ?>